package by.siarhei.java.tij.access.dessert;

/**
 * @author Siarhei Shchahratsou <s.siarhei@gmail.com>
 * @since 01.03.14
 */
public class IceCream {
    public static void main(String[] args) {
        //new Sundae(); //has private access
        Sundae.makeASundae();
    }
}

class Sundae {
    private Sundae() {
        System.out.println("Constructor Sundae");
    }

    static Sundae makeASundae() {
        return new Sundae();
    }
}
